<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>正式员工报表</title>
    <%@include file="../../../static/common/common.jsp" %>
    <script type="text/javascript" src="/static/plugins/artDialog/jquery.artDialog.js?skin=blue"></script>
    <script src="/static/plugins/artDialog/plugins/iframeTools.js"></script>
    <script src="/static/js/chart.js"></script>
    <script>
        function getBar() {
            console.log(123);
            var url = '/charts/getBar.do' + "?" + $("#chart_form").serialize();
            console.log(name);
            console.log(url);
            art.dialog.open(url, {
                title: "报表",
                width: 800,
                height: 600
            });
        }
        function getPie() {
            console.log(123);
            var url = '/charts/getPie.do' + "?" + $("#chart_form").serialize();
            console.log(name);
            console.log(url);
            art.dialog.open(url, {
                title: "报表",
                width: 800,
                height: 600
            });
        }
    </script>
</head>
<!--非常关键-->
<jsp:include page="/static/style/loader.jsp"></jsp:include>
<body>
<table id="chart_datagrid"></table>
<div id="chart_btns">
    <form id="chart_form">
        关键字:<input class="easyui-textbox" name="keyword" prompt="学员姓名/居住地址/毕业学校/电话">
        &nbsp;&nbsp;&nbsp;入学时间:<input class="easyui-datebox" name="beginDate">~<input class="easyui-datebox"
                                                                                      name="endDate">
        &nbsp;&nbsp;&nbsp;分类:<input class="easyui-combobox" name="groupBy" value="payment_type"
                                    data-options="data:[{name:'付款方式',value:'payment_type'},{name:'学员状态',value:'status'}],textField:'name',valueField:'value',panelHeight:'auto'">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="query">搜索</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
       onclick="getBar();">柱状图</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
       onclick="getPie();">饼状图</a>
    </form>
</div>
</body>
</html>
